add_library(GeoHash "")

configure_H3D_library(GeoHash)

H3D_glob_files(GEOHASN_SOURCES src/*.cpp)
H3D_glob_files(GEOHASN_HEADERS src/*.h src/*.hpp)
H3D_glob_files(GEOHASN_PUBLIC_HEADERS include/*.h)
H3D_glob_files(GEOHASN_TEST_SOURCES test/*.cpp)
H3D_glob_files(GEOHASN_TEST_HEADERS test/*.h)

set_target_properties(GeoHash
    PROPERTIES
        TEST_SOURCES "${GEOHASN_TEST_SOURCES}"
        TEST_HEADERS "${GEOHASN_TEST_HEADERS}"
)

set_target_properties(GeoHash
    PROPERTIES
    PUBLIC_HEADER "${GEOHASN_PUBLIC_HEADERS}"
)

target_sources(
    GeoHash
    PRIVATE
        ${GEOHASN_SOURCES}
        ${GEOHASN_HEADERS}
    PUBLIC
        ${GEOHASN_PUBLIC_HEADERS}
)

target_include_directories(
    GeoHash
    SYSTEM PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/include
    PRIVATE
        ${CMAKE_CURRENT_LIST_DIR}/src/
)


install(TARGETS GeoHash
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

install(
    DIRECTORY include
    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
